package com.xing.springbootdemo.dto.book;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.validation.constraints.Min;

import java.io.Serializable;

/*
 * 静，谦虚谨慎，心胸宽广容纳所有好的坏的、先苦后甜
 * springbootdemo
 * 2021/11/21 21:37
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class BookPageReqDto implements Serializable {
    @Min(value = 2,message = "每页最少显示10条")
    private Integer pageSize;
    @Min(value = 1,message = "当前页最小为1")
    private Integer pageNum;
    private Integer bookId;
    private String name;
    private String author;
    private String publish;
    private String isbn;
    private String introduction;
    private String language;
    private String price;
    private String pubdate;
    private String classId;
    private String pressmark;
    private String state;
}
